﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using OneMG.Phoenix.Service.Model;
using OneMG.Phoenix.Service.Contracts;
using OneMG.Phoenix.Service;
namespace OneMG.Phoenix.AdminSite.Views.Passport
{
    public partial class Rights : System.Web.UI.Page
    {
        IRightsTypeService IRightsType = new RightsTypeService();
        IRightsService IRights = new RightsService();
        public IList<RightsTypeModel> RightsTypeList = new List<RightsTypeModel>();
        public IList<RightsModel> RightsList;
        public int RightTypeID = 0;
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                int.TryParse(Request.Form["sltCategoryID"], out RightTypeID);
                RightsTypeList = IRightsType.GetAll();
                RightsList = IRights.GetByRightTypeID(RightTypeID);
            }
        }

    }
}
